import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/Home/index.vue')
    },
    {
      path: '/sensor',
      name: 'sensor',
      component: () => import('../views/SensorMonitor/index.vue')
    },
    {
      path: '/alarm',
      name: 'alarm',
      component: () => import('../views/AlarmManagement/index.vue')
    },
    {
      path: '/cabin',
      name: 'cabin',
      component: () => import('../views/CabinManagement/index.vue')
    },
    {
      path: '/settings',
      name: 'settings',
      component: () => import('../views/Settings/index.vue')
    }
  ]
})

export default router